package myky.com.doctorapp.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.facebook.drawee.view.SimpleDraweeView
import myky.com.doctorapp.R
import myky.com.doctorapp.api.Address
/**
 * Description: 医生回复图片的Adapter
 * @author xiangyao
 * Created by 2019/3/11 11:42 AM
 */
class ConsultDcotorRepeatPhotoAdapter(resPic:MutableList<String>):BaseQuickAdapter<String,BaseViewHolder>(R.layout.consult_doctor_repeat_phonto_item,resPic) {
    override fun convert(helper: BaseViewHolder?, item: String?) {

        val simpleDraweeView = helper?.getView<SimpleDraweeView>(R.id.doctor_repeat_pic)


        simpleDraweeView?.setImageURI(Address.IMAGE+item)


        helper?.addOnClickListener(R.id.doctor_repeat_pic)

    }
}